from django.conf.urls import patterns, include, url
from django.conf import settings
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    # Examples:
    # url(r'^$', 'ltyx.views.home', name='home'),
    # url(r'^ltyx/', include('ltyx.foo.urls')),

    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:register
     url(r'^admin/', include(admin.site.urls)),
#     url(r'^$', 'ltyxapp.views.index'),
#     url(r'^(\d{1,3})/$', 'ltyxapp.views.nav'),
#     url(r'^(\d{1,3})/(\d{1,3})/$','ltyxapp.entryViews.article'),
#     url(r'^grade/(\d{1,3})/$', 'ltyxapp.views.grade'),
#     url(r'^bloginfo/(\d{1,3})/$', 'ltyxapp.views.bloginfo'),
#     url(r'^register$', 'ltyxapp.views.register'),
     url(r'^upload$', 'ltyxapp.upload.upload'),
     url(r'^grappelli/',include('grappelli.urls')),
#
#
#     url(r'^blog/(.*)$', 'ltyxapp.blog_views.blog_index'),
#     # url(r'^blogs/(\d{1,3})/(\d{1,3})/(\d{1,3})/(\d{1,3})/(.*)/$', 'ltyxapp.blog_views.blog_filter'),
#     url(r'^detail/(.*)/(.*)/$', 'ltyxapp.blog_views.blog_detail'),



     url(r'^(?P<path>.+)$','django.views.static.serve',{'document_root':settings.MEDIA_ROOT}),
)
